package licode.unisop.single.platform.application.gateway;

import licode.unisop.provider.info.PlatPageInfo;
import licode.unisop.provider.info.SiPlatIdFind;
import licode.unisop.provider.info.SiPlatRealmUpdateIn;
import licode.unisop.provider.vo.SiPageResult;
import licode.unisop.provider.vo.SiPlatform;
import licode.unisop.single.platform.application.entity.PlatformEntity;

import java.io.Serializable;

/**
 * uni-platform-single
 *
 * @author licode
 * @date 2016-08-27 18:14:10
 */
public interface PlatformDao {
    void add(PlatformEntity item);
    void update(PlatformEntity item);
    void removeWithId(Serializable id);
    void updatePlatformRealm(SiPlatRealmUpdateIn platform);
    PlatformEntity getWithId(Serializable id);
    PlatformEntity getPlatform(SiPlatIdFind info);
    PlatformEntity getPlatformByName(String name);
    SiPageResult<SiPlatform> findPage(PlatPageInfo req);
}
